package com.hippo.core.core.ext

import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import com.hippo.core.ui.theme.PaddingBody

fun Modifier.paddingBody():Modifier{
    return this.padding(PaddingBody)
}

@Composable
fun Modifier.click(onClick: () -> Unit):Modifier{
    val interactionSource = remember { MutableInteractionSource() }
    return this.clickable(
        indication = null, // 去掉点击波纹效果
        interactionSource = interactionSource,
        onClick = onClick
    )
}

